build: Ensure all experimental tests are distributed in tarballs
authorPhilip Withnall <withnall@endlessm.com>
Wed, 12 Jul 2017 14:04:34 +0000 (15:04 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 12 Jul 2017 14:23:44 +0000 (14:23 +0000)
As with the previous commit, ensure that tests which are run when
configured with --enable-experimental-api, are always distributed; even
when running `make dist` from a source tree configured with
--disable-experimental-api.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1002
Approved by: cgwalters

Makefile-tests.am

index 28e0a43a7a7480b3bfe715fc14ae7503324cac09..7be2ab59f594f3f6ec9b510615a7464f9b0474aa 100644 (file)
@@ -114,8 +114,7 @@ _installed_or_uninstalled_test_scripts = \
        tests/test-summary-view.sh \
        $(NULL)
 
-if ENABLE_EXPERIMENTAL_API
-_installed_or_uninstalled_test_scripts += \
+experimental_test_scripts = \
        tests/test-find-remotes.sh \
        tests/test-fsck-collections.sh \
        tests/test-init-collections.sh \
@@ -125,6 +124,11 @@ _installed_or_uninstalled_test_scripts += \
        tests/test-summary-collections.sh \
        tests/test-pull-collections.sh \
        $(NULL)
+
+if ENABLE_EXPERIMENTAL_API
+_installed_or_uninstalled_test_scripts += $(experimental_test_scripts)
+else
+EXTRA_DIST += $(experimental_test_scripts)
 endif
 
 if BUILDOPT_FUSE